package org.demo.spring.ioc.factorybean;

import org.springframework.beans.factory.FactoryBean;

public class HttpClientFactoryBean implements FactoryBean<HttpClientService>{

    private HttpClientService httpClientService;

    public HttpClientService getObject() throws Exception {
        return new HttpClientService();
    }

    public Class<?> getObjectType() {
        return HttpClientService.class;
    }

    public boolean isSingleton() {
        return true;
    }
}
